package animal;

import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        animal animal1 = new animal();
        System.out.println("请输入狗名:");
        animal1.setName(input.next());

        System.out.println("请输入狗龄:");
        animal1.setAge(input.nextInt());

        System.out.println("请输入颜色:");
        animal1.setColor(input.next());

        System.out.println("请输入种类:");
        animal1.setVarieties(input.next());

        System.out.println("请输入重量:");
        animal1.setWeight(input.nextInt());

        animal1.animal2();

    }
}
